Bring test of nightly in line with tests
authorJon Gjengset <jon@thesquareplanet.com>
Tue, 9 May 2017 03:44:41 +0000 (23:44 -0400)
committerAlex Crichton <alex@alexcrichton.com>
Tue, 9 May 2017 15:22:32 +0000 (08:22 -0700)
src/cargo/ops/cargo_rustc/context.rs

index 9e81a9e644eb4ae258ff1c4c03847070617676b3..11c25470f5b03751b7dcd35b9f04c9cd96faee7a 100644 (file)
@@ -88,8 +88,10 @@ impl<'a, 'cfg> Context<'a, 'cfg> {
         // ignore CARGO_INCREMENTAL on anything but nightly. This allows users
         // to always have CARGO_INCREMENTAL set without getting unexpected
         // errors on stable/beta builds.
-        let incremental_enabled = incremental_enabled
-            && config.rustc()?.verbose_version.contains("nightly");
+        let is_nightly =
+            config.rustc()?.verbose_version.contains("-nightly") ||
+            config.rustc()?.verbose_version.contains("-dev");
+        let incremental_enabled = incremental_enabled && is_nightly;
 
         Ok(Context {
             ws: ws,